/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package BUSObject;

/**
 *
 * @author HOANG ANH
 */
public class CartItem {
    private Product _product;

    public int getID() {
        return _product.getID();
    }

    public void setID(int _ID) {
        this._product.setID(_ID);
    }

    public String getName() {
        return _product.getName();
    }

    public void setName(String _Name) {
        this._product.setName(_Name);
    }

    public float getPrice() {
        return _product.getPrice();
    }

    public void setPrice(float _price) {
        this._product.setPrice(_price);
    }
    
    private int _quantity;
    
    public int getQuantity() {
        return _quantity;
    }

    public void setQuantity(int _quantity) {
        this._quantity = _quantity;
    }
    

    public CartItem(Product _product, int _quantity) {
        this._product = _product;
        this._quantity = _quantity;
    }

    public CartItem() {
        _product = new Product();
        _quantity = 0;
    }
    
    
}
